package com.wysiwyg.flow.enums;

/**
 * 流程标签枚举
 * 用于标识不同类型的业务流程
 */
public enum FlowTag {
    // 用户变更流程
    USER_CHANGE("USER_CHANGE");

    private final String value;

    FlowTag(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    /**
     * 根据字符串值获取枚举
     */
    public static FlowTag fromValue(String value) {
        for (FlowTag tag : FlowTag.values()) {
            if (tag.value.equals(value)) {
                return tag;
            }
        }
        throw new IllegalArgumentException("Unknown FlowTag value: " + value);
    }
}
